@echo off

set PROTOC_PATH=E:\Dependencies\cppsoft\grpc\visualpro\third_party\protobuf\Debug\protoc.exe
set GRPC_PLUGIN_PATH=E:\Dependencies\cppsoft\grpc\visualpro\Debug\grpc_cpp_plugin.exe
set PROTO_FILE=message.proto

echo Generating C++ and gRPC code from proto file...'

%PROTOC_PATH% -I=. --grpc_out=. --plugin=protoc-gen-grpc="%GRPC_PLUGIN_PATH%" --cpp_out=. %PROTO_FILE%

echo Done.

::E:\Dependencies\cppsoft\grpc\visualpro\third_party\protobuf\Debug\protoc.exe -I=. --grpc_out=. --plugin=protoc-gen-grpc="E:\Dependencies\cppsoft\grpc\visualpro\Debug\grpc_cpp_plugin.exe" --cpp_out="." message.proto